package com.wei.czz.framework.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wei.czz.framework.common.entity.RegionCodeEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2023-11-27 17:07:47
 * className: RegionCodeDao
 * version: 1.0
 * description:
 */
public interface RegionCodeDao extends BaseMapper<RegionCodeEntity> {

    /**
     * 查询所有孙子数据
     * @param parentId     父级主键
     * @param deleteStatus 删除状态
     * @return 数据列表
     */
    List<RegionCodeEntity> getSunChildrenList(@Param("parentId") Integer parentId,
                                              @Param("deleteStatus") Integer deleteStatus);
}
